<template>
  <el-card>
    <el-form :data="formData" label-width="80px">
      <!-- 商户名 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="商户名">
            <el-input v-model="formData.MerchantName" placeholder="2-15个字符"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <!-- 商户手机号 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="手机号">
            <el-input v-model="formData.MerchantName" placeholder="请输入手机号"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <!-- 代理商 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="代理商">
            <el-select v-model="formData.AgentId" placeholder="请选择代理商">
              <el-option
                v-for="item in selectOption"
                :label="item.label"
                :value="item.value"
                :key="item.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <!-- 交易费率 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="交易费率">
            <el-input v-model="formData.MerchantName" placeholder="请输入费率"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <span>例如:0.01代表1%</span>
        </el-col>
      </el-row>
      <!-- 单笔下发 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="交易费率">
            <el-input v-model="formData.MerchantName" placeholder="￥"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <span>商户下发每笔收费，单位元</span>
        </el-col>
      </el-row>
      <!-- 下发范围 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="下发范围">
            <el-input class="custom-input" v-model="formData.MerchantName" placeholder="￥"></el-input>
            <span>-</span>
            <el-input class="custom-input" v-model="formData.MerchantName" placeholder="￥"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <span>单位分,例如:10000-2000000,代表单笔下发在一百至两万之间</span>
        </el-col>
      </el-row>
    </el-form>
  </el-card>
</template>

<script>
export default {
  data() {
    return {
      formData: {
        MerchantName: ''
      },
      selectOption: [
        {
          label: '平台商户',
          value: '1'
        },
        {
          label: '平台商户22',
          value: '2'
        },
        {
          label: '平台商户33',
          value: '3'
        },
        {
          label: '平台商户44',
          value: '4'
        },
        {
          label: '平台商户55',
          value: '5'
        },
        {
          label: '平台商户66',
          value: '6'
        },
        {
          label: '平台商户77',
          value: '7'
        }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.el-select {
  width: 100%;
}
.el-col span {
  margin-left: 10px;
  line-height: 40px;
  font-size: 14px;
  color: #bbb;
}
.custom-input {
  width: 46%;
  + span {
    margin: 0 10px;
  }
}
</style>